package com.cyl.manager.aws.pojo.vo;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import com.ruoyi.common.annotation.Excel;

import io.swagger.annotations.ApiModelProperty;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
/**
 * 毛利润统计明细 数据视图对象
 * 
 * @author hxw
 */
@Data
public class ProfitDetailsStatisticsSumVO  {


	
	public ProfitDetailsStatisticsSumVO() {
		super();
	}
 
    
    public ProfitDetailsStatisticsSumVO(ProfitDetailsStatisticsVO vo) {
		super();
		this.id = vo.getId();
		this.tjdata = vo.getTjdata();
		this.brandId = vo.getBrandId();
		this.brandmc = vo.getBrandmc();
		this.deptDpId = vo.getDeptDpId();
		this.deptDpmc = vo.getDeptDpmc();
		
		this.brandmcStr = vo.getBrandmcStr();
		this.deptDpmcStr = vo.getDeptDpmcStr();
		
		this.payQuantity = vo.getPayQuantity().intValue() - vo.getRetQuantity().intValue();
		this.payConut = vo.getPayConut().intValue()  - vo.getRetConut().intValue() ;
		this.payAmount = vo.getPayAmount().subtract(vo.getRetAmount());
		this.paySysAmount = vo.getPaySysAmount().subtract(vo.getRetSysAmount());
		this.payGysAmount = vo.getPayGysAmount().subtract(vo.getRetGysAmount());
		this.payDpAmount = vo.getPayDpAmount().subtract(vo.getRetDpAmount());
		this.payFeeAmount = vo.getPayFeeAmount().subtract(vo.getRetFeeAmount());
	}
    
    private String id;

    private String brandmcStr;
    
    
    private String deptDpmcStr;
    
	@Excel(name = "日期")
    private Integer tjdata;

    @Excel(name = "供应商id")
    private Long brandId;
    
    @Excel(name = "供应商名称")
    private Long brandmc;
    
    @Excel(name = "店铺id")
    private Long deptDpId;
    
    @Excel(name = "店铺名称")
    private Long deptDpmc;

    @ApiModelProperty("销售商品数")
    @Excel(name = "销售商品数")
    private Integer payQuantity;

    @ApiModelProperty("销售订单数")
    @Excel(name = "销售订单数")
    private Integer payConut;
    
    @Excel(name = "总金额")
    private BigDecimal payAmount;
 
    @Excel(name = "平台应结算金额")
    private BigDecimal paySysAmount;
    
    @Excel(name = "供应商应结算金额")
    private BigDecimal payGysAmount;
    
    @Excel(name = "店铺应结算金额")
    private BigDecimal payDpAmount;
    
    @ApiModelProperty("手续费")
    //@Excel(name = "手续费")
    private BigDecimal payFeeAmount;
 
    
    
}
